package com.tem.interceptor;

import org.apache.log4j.Logger;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import javax.transaction.Transactional;

/**
 * @Author: tiger
 * @Date:2018/5/17
 * @Description:
 */
//@Aspect
//@Component
public class MyMethodAspect {
//    @Pointcut("execution(* com.tem.controller..*(..))")
//    @Pointcut("execution(* com.tem.service.impl..*(..))")
    public void pointCut() {
    }

    /**
     * 日志记录器
     */
    private final Logger logger = Logger.getLogger(MyMethodAspect.class);

//    @Before("pointCut()")
    public void beforeMethod() {
//        logger.info("【MyMethodAdvise】..................before");
    }

//    @After("pointCut()")
    public void afterMethod() {
//        logger.info("【MyMethodAdvise】..................after");
    }

}
